

<%@ page import="hc.uco.Evolucao" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'evolucao.label', default: 'Evolucao')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${evolucaoInstance}">
            <div class="errors">
                <g:renderErrors bean="${evolucaoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${evolucaoInstance?.id}" />
                <g:hiddenField name="version" value="${evolucaoInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="avch"><g:message code="evolucao.avch.label" default="Avch" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'avch', 'errors')}">
                                    <g:checkBox name="avch" value="${evolucaoInstance?.avch}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="ch"><g:message code="evolucao.ch.label" default="Ch" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'ch', 'errors')}">
                                    <g:textField name="ch" value="${evolucaoInstance?.ch}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="clcr"><g:message code="evolucao.clcr.label" default="Clcr" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'clcr', 'errors')}">
                                    <g:textField name="clcr" value="${fieldValue(bean: evolucaoInstance, field: 'clcr')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="colesterolT"><g:message code="evolucao.colesterolT.label" default="Colesterol T" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'colesterolT', 'errors')}">
                                    <g:textField name="colesterolT" value="${fieldValue(bean: evolucaoInstance, field: 'colesterolT')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="createdBy"><g:message code="evolucao.createdBy.label" default="Created By" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'createdBy', 'errors')}">
                                    <g:select name="createdBy.id" from="${hc.uco.Usuario.list()}" optionKey="id" value="${evolucaoInstance?.createdBy?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="creatinina"><g:message code="evolucao.creatinina.label" default="Creatinina" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'creatinina', 'errors')}">
                                    <g:textField name="creatinina" value="${fieldValue(bean: evolucaoInstance, field: 'creatinina')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="deltaHb"><g:message code="evolucao.deltaHb.label" default="Delta Hb" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'deltaHb', 'errors')}">
                                    <g:textField name="deltaHb" value="${fieldValue(bean: evolucaoInstance, field: 'deltaHb')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="diaData"><g:message code="evolucao.diaData.label" default="Dia Data" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'diaData', 'errors')}">
                                    <g:datePicker name="diaData" precision="day" value="${evolucaoInstance?.diaData}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="diaNumero"><g:message code="evolucao.diaNumero.label" default="Dia Numero" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'diaNumero', 'errors')}">
                                    <g:textField name="diaNumero" value="${fieldValue(bean: evolucaoInstance, field: 'diaNumero')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="glicemia"><g:message code="evolucao.glicemia.label" default="Glicemia" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'glicemia', 'errors')}">
                                    <g:textField name="glicemia" value="${fieldValue(bean: evolucaoInstance, field: 'glicemia')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="hb"><g:message code="evolucao.hb.label" default="Hb" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'hb', 'errors')}">
                                    <g:textField name="hb" value="${fieldValue(bean: evolucaoInstance, field: 'hb')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="hbGli"><g:message code="evolucao.hbGli.label" default="Hb Gli" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'hbGli', 'errors')}">
                                    <g:textField name="hbGli" value="${fieldValue(bean: evolucaoInstance, field: 'hbGli')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="hdl"><g:message code="evolucao.hdl.label" default="Hdl" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'hdl', 'errors')}">
                                    <g:textField name="hdl" value="${fieldValue(bean: evolucaoInstance, field: 'hdl')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="ht"><g:message code="evolucao.ht.label" default="Ht" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'ht', 'errors')}">
                                    <g:textField name="ht" value="${fieldValue(bean: evolucaoInstance, field: 'ht')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="ldl"><g:message code="evolucao.ldl.label" default="Ldl" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'ldl', 'errors')}">
                                    <g:textField name="ldl" value="${fieldValue(bean: evolucaoInstance, field: 'ldl')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="medicacao"><g:message code="evolucao.medicacao.label" default="Medicacao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'medicacao', 'errors')}">
                                    <g:select name="medicacao" from="${hc.uco.Medicacao.list()}" multiple="yes" optionKey="id" size="5" value="${evolucaoInstance?.medicacao*.id}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="paciente"><g:message code="evolucao.paciente.label" default="Paciente" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'paciente', 'errors')}">
                                    <g:select name="paciente.id" from="${hc.uco.Paciente.list()}" optionKey="id" value="${evolucaoInstance?.paciente?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="pcr01"><g:message code="evolucao.pcr01.label" default="Pcr01" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'pcr01', 'errors')}">
                                    <g:textField name="pcr01" value="${fieldValue(bean: evolucaoInstance, field: 'pcr01')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="pcr05"><g:message code="evolucao.pcr05.label" default="Pcr05" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'pcr05', 'errors')}">
                                    <g:textField name="pcr05" value="${fieldValue(bean: evolucaoInstance, field: 'pcr05')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="potassio"><g:message code="evolucao.potassio.label" default="Potassio" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'potassio', 'errors')}">
                                    <g:textField name="potassio" value="${fieldValue(bean: evolucaoInstance, field: 'potassio')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="r"><g:message code="evolucao.r.label" default="R" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'r', 'errors')}">
                                    <g:textField name="r" value="${fieldValue(bean: evolucaoInstance, field: 'r')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="rni"><g:message code="evolucao.rni.label" default="Rni" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'rni', 'errors')}">
                                    <g:textField name="rni" value="${fieldValue(bean: evolucaoInstance, field: 'rni')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="sangraDelta"><g:message code="evolucao.sangraDelta.label" default="Sangra Delta" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'sangraDelta', 'errors')}">
                                    <g:textField name="sangraDelta" value="${evolucaoInstance?.sangraDelta}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="sangramento"><g:message code="evolucao.sangramento.label" default="Sangramento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'sangramento', 'errors')}">
                                    <g:checkBox name="sangramento" value="${evolucaoInstance?.sangramento}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="sodio"><g:message code="evolucao.sodio.label" default="Sodio" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'sodio', 'errors')}">
                                    <g:textField name="sodio" value="${fieldValue(bean: evolucaoInstance, field: 'sodio')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="transfusao"><g:message code="evolucao.transfusao.label" default="Transfusao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'transfusao', 'errors')}">
                                    <g:checkBox name="transfusao" value="${evolucaoInstance?.transfusao}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="triglicerides"><g:message code="evolucao.triglicerides.label" default="Triglicerides" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'triglicerides', 'errors')}">
                                    <g:textField name="triglicerides" value="${fieldValue(bean: evolucaoInstance, field: 'triglicerides')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="troponinaI01"><g:message code="evolucao.troponinaI01.label" default="Troponina I01" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'troponinaI01', 'errors')}">
                                    <g:textField name="troponinaI01" value="${fieldValue(bean: evolucaoInstance, field: 'troponinaI01')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="troponinaI02"><g:message code="evolucao.troponinaI02.label" default="Troponina I02" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'troponinaI02', 'errors')}">
                                    <g:textField name="troponinaI02" value="${fieldValue(bean: evolucaoInstance, field: 'troponinaI02')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="updatedBy"><g:message code="evolucao.updatedBy.label" default="Updated By" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'updatedBy', 'errors')}">
                                    <g:select name="updatedBy.id" from="${hc.uco.Usuario.list()}" optionKey="id" value="${evolucaoInstance?.updatedBy?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="ureia"><g:message code="evolucao.ureia.label" default="Ureia" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'ureia', 'errors')}">
                                    <g:textField name="ureia" value="${fieldValue(bean: evolucaoInstance, field: 'ureia')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="vldl"><g:message code="evolucao.vldl.label" default="Vldl" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: evolucaoInstance, field: 'vldl', 'errors')}">
                                    <g:textField name="vldl" value="${fieldValue(bean: evolucaoInstance, field: 'vldl')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
